from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.contrib.auth.views import login,logout

admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^wikicamp/', include('wikicamp.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
        (r'^admin/', include(admin.site.urls)),
        (r'^admin/jsi18n/$', 'django.views.i18n.javascript_catalog'),
        (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    	(r'^wikicamp/page/(?P<page_name>[^/]+)/edit/$','wikicamp.wiki.views.edit_page'),
    	(r'^wikicamp/page/(?P<page_name>[^/]+)/save/$','wikicamp.wiki.views.save_page'),	
    	(r'^wikicamp/page/(?P<page_name>[^/]+)/$','wikicamp.wiki.views.view_page'),
        (r'^wikicamp/tag/(?P<tag_name>[^/]+)/$','wikicamp.wiki.views.view_tag'),
        (r'^polls/$','wikicamp.polls.views.index'),
        (r'^polls/(?P<poll_id>\d+)/$','wikicamp.polls.views.detail'),
        (r'^polls/(?P<poll_id>\d+)/results/$','wikicamp.polls.views.results'),
        (r'^polls/(?P<poll_id>\d+)/vote/$','wikicamp.polls.views.vote'),
        (r'^accounts/login/$',  login),
        (r'^accounts/logout/$', 'wikicamp.worklist.views.profile_logout'),
        (r'^accounts/register/$','wikicamp.worklist.views.register'),
        (r'^accounts/profile/(?P<user_name>[^/]+)/edit/$','wikicamp.worklist.views.profile'),
        (r'^accounts/profile/(?P<user_name>[^/]+)/save/$','wikicamp.worklist.views.profile_save'),
        (r'^worklist/isistek/olustur/$','wikicamp.worklist.views.isistek_olustur'),
        (r'^worklist/isistek/(?P<isistek_id>\d+)/kaydet/$','wikicamp.worklist.views.isistek_kaydet'),
        (r'^worklist/isistek/(?P<isistek_id>\d+)/duzenle/$','wikicamp.worklist.views.isistek_duzenle'),
        (r'^worklist/isistek/(?P<isistek_id>\d+)/onayla/$','wikicamp.worklist.views.isistek_onayla'),
        (r'^worklist/islistesi/coklu_onayla/$','wikicamp.worklist.views.isistek_coklu_onayla'),
        (r'^worklist/islistesi/rapor/olustur/$','wikicamp.worklist.views.rapor_olustur'),
        (r'^worklist/islistesi/rapor/goster/$','wikicamp.worklist.views.rapor_deneme'),
        (r'^worklist/rapor/cihaz/olustur/$','wikicamp.worklist.views.cihaz_rapor_olustur'),
        (r'^worklist/rapor/cihaz/goster/$','wikicamp.worklist.views.cihaz_rapor_goster'),
        (r'^worklist/islistesi/$','wikicamp.worklist.views.islistesi_show'),
        (r'^worklist/isistek/(?P<isistek_id>\d+)/sil/$','wikicamp.worklist.views.isistek_sil'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/kaydet/$','wikicamp.worklist.views.tanimlamalar_kaydet'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/program_ekle/$','wikicamp.worklist.views.tanimlamalar_program_ekle'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/program/(?P<bakim_id>\d+)/goster/$','wikicamp.worklist.views.tanimlamalar_program_goster'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/program/(?P<bakim_id>\d+)/sil/$','wikicamp.worklist.views.tanimlamalar_program_sil'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/belge_ekle/$','wikicamp.worklist.views.tanimlamalar_belge_ekle'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/belgeler/degistir/$','wikicamp.worklist.views.tanimlamalar_belgeler_degistir'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/rapor/goster/$','wikicamp.worklist.views.tanimlamalar_rapor_olustur'),
        (r'^worklist/sabitler/coklu_belge_ekle/$','wikicamp.worklist.views.tanimlamalar_coklu_belge_ekle'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/belge/(?P<belge_id>\d+)/sil/$','wikicamp.worklist.views.tanimlamalar_belge_sil'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/bakimform/(?P<form_sno>\d+)/goster/$','wikicamp.worklist.views.tanimlamalar_bakimform_goster'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/bakimform/(?P<form_sno>\d+)/sil/$','wikicamp.worklist.views.tanimlamalar_bakimform_sil'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/bakimform/(?P<form_sno>\d+)/kaydet/$','wikicamp.worklist.views.tanimlamalar_bakimform_kaydet'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/bakimform/ekle/$','wikicamp.worklist.views.tanimlamalar_bakimform_ekle'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/degistir/ekle/$','wikicamp.worklist.views.tanimlamalar_altbirim_ekle'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/degistir/kaldir/$','wikicamp.worklist.views.tanimlamalar_altbirim_kaldir'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/degistir/$','wikicamp.worklist.views.tanimlamalar_degistir'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/(?P<kayit_sno>\d+)/sil/$','wikicamp.worklist.views.tanimlamalar_sil'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/ekle/$','wikicamp.worklist.views.tanimlamalar_ekle'),
        (r'^worklist/sabitler/(?P<tanimlama_id>\d+)/|^worklist/sabitler/$','wikicamp.worklist.views.tanimlamalar'),
        (r'^worklist/sabitler/bakim/taslak/olustur/$','wikicamp.worklist.views.bakim_taslak_olustur'),
        (r'^worklist/sabitler/bakim/taslak/olustur/kaydet/$','wikicamp.worklist.views.bakim_taslak_kaydet_yeni'),
        (r'^worklist/sabitler/bakim/taslak/(?P<tanimlama_id>\d+)/degistir/$','wikicamp.worklist.views.bakim_taslak_degistir'),
        (r'^worklist/sabitler/bakim/taslak/(?P<tanimlama_id>\d+)/kaydet/$','wikicamp.worklist.views.bakim_taslak_kaydet'),
        (r'^worklist/sabitler/tanimlama/service/ajax/autocomplete/aciklama/$','wikicamp.worklist.views.autocomplete_aciklama_ajax'),
        (r'^worklist/sabitler/tanimlama/service/ajax/autocomplete/modeli/$','wikicamp.worklist.views.autocomplete_modeli_ajax'),
        (r'^worklist/cihaz/umdn/$','wikicamp.worklist.views.cihaz_umdn_getir'),
        (r'^worklist/ajanda/json/$','wikicamp.worklist.views.ajanda_olustur_json'),        
        (r'^worklist/ajanda/guncelle/$','wikicamp.worklist.views.ajanda_guncelle_ajax'),
        (r'^worklist/ajanda/cihaz/$','wikicamp.worklist.views.ajanda_cihaz_getir_ajax'),
        (r'^worklist/ajanda/$','wikicamp.worklist.views.ajanda_olustur'),
        (r'^worklist/hastane/fatura/$','wikicamp.worklist.views.hastane_faturalar'),
        (r'^worklist/hastane/fatura/kaydet/$','wikicamp.worklist.views.hastane_fatura_saveas'),
        (r'^worklist/hastane/fatura/(?P<fat_id>\d+)/degistir/$','wikicamp.worklist.views.hastane_fatura_edit'),
        (r'^worklist/hastane/fatura/(?P<fat_id>\d+)/detay/ekle/$','wikicamp.worklist.views.hasta_fatura_detay_add'),
        (r'^worklist/hastane/fatura/(?P<fat_id>\d+)/detay/(?P<fatdetay_id>\d+)/$','wikicamp.worklist.views.hasta_fatura_detay_show'),
        (r'^worklist/hastane/fatura/(?P<fat_id>\d+)/detay/(?P<fatdetay_id>\d+)/kaydet/$','wikicamp.worklist.views.hasta_fatura_detay_save'),
        (r'^worklist/hastane/tuketim/$','wikicamp.worklist.views.hastane_tuketim_goster'),
        (r'^worklist/hastane/tuketim/olustur/$','wikicamp.worklist.views.hastane_tuketim_olustur'),
        (r'^worklist/hastane/tuketim/olustur/kaydet/$','wikicamp.worklist.views.hastane_tuketim_ekle'),
        (r'^worklist/hastane/tuketim/degistir/(?P<tuketim_id>\d+)/$','wikicamp.worklist.views.hastane_tuketim_degistir'),
        (r'^accounts/profile/$','wikicamp.worklist.views.index'),
        (r'^worklist/$','wikicamp.worklist.views.index'),
        (r'^documentation/docs/saveas/$','wikicamp.documentation.views.upload_file'),
        (r'^documentation/docs/(?P<doc_id>\d+)/save/$','wikicamp.documentation.views.docs_save'),
        (r'^documentation/docs/(?P<doc_id>\d+)/edit/$','wikicamp.documentation.views.docs_edit'),
        (r'^documentation/docs/(?P<doc_id>\d+)/delete/$','wikicamp.documentation.views.docs_delete'),
        (r'^documentation/docs/(?P<doc_id>\d+)/godelete/$','wikicamp.documentation.views.docs_delete_confirmed'),
        (r'^documentation/categories/(?P<cat_id>\d+)/docs/addnew/$','wikicamp.documentation.views.docs_add'),
        (r'^documentation/categories/add/$','wikicamp.documentation.views.categories_add'),
        (r'^documentation/categories/(?P<cat_id>\d+)/docs/$','wikicamp.documentation.views.categories_doclist'),
        (r'^documentation/categories/(?P<cat_id>\d+)/duzenle/$','wikicamp.documentation.views.categories_edit'),
        (r'^documentation/categories/(?P<cat_id>\d+)/save/$','wikicamp.documentation.views.categories_save'),
        (r'^documentation/categories/(?P<cat_id>\d+)/delete/$','wikicamp.documentation.views.categories_delete'),
        (r'^documentation/categories/(?P<cat_id>\d+)/godelete/$','wikicamp.documentation.views.categories_delete_confirmed'),
        (r'^documentation/categories/saveas/$','wikicamp.documentation.views.categories_save_as'),
        (r'^documentation/categories/$','wikicamp.documentation.views.categories'),
        (r'^documentation/tags/manage/$','wikicamp.documentation.views.manage_tags'),
        (r'^documentation/tags/add/$','wikicamp.documentation.views.add_tags'),
        (r'^documentation/tags/delete/$','wikicamp.documentation.views.delete_tags'),
        (r'^documentation/search/$','wikicamp.documentation.views.search_doc'),
        (r'^documentation/$','wikicamp.documentation.views.index'),
        (r'^documentation/accounts/login/auth/$','wikicamp.documentation.views.documentation_auth'),
        (r'^documentation/accounts/login/$','wikicamp.documentation.views.documentation_login'),
        (r'^documentation/accounts/logout/$','wikicamp.documentation.views.documentation_logout'),
        (r'^documentation/accounts/groups/(?P<group_id>\d+)/edit/$','wikicamp.documentation.views.documentation_auth_group_edit'),
        (r'^documentation/accounts/groups/(?P<group_id>\d+)/save/$','wikicamp.documentation.views.documentation_auth_group_save'),
        (r'^documentation/accounts/groups/(?P<group_id>\d+)/delete/$','wikicamp.documentation.views.documentation_auth_group_delete'),
        (r'^documentation/accounts/groups/(?P<group_id>\d+)/godelete/$','wikicamp.documentation.views.documentation_auth_group_delete_confirmed'),
        (r'^documentation/accounts/groups/add/$','wikicamp.documentation.views.documentation_auth_group_add'),
        (r'^documentation/accounts/groups/$','wikicamp.documentation.views.documentation_auth_groups'),
        (r'^documentation/accounts/profile/(?P<user_name>[^/]+)/edit/password/$','wikicamp.documentation.views.documentation_auth_pass_change'),
        (r'^documentation/accounts/profile/(?P<user_name>[^/]+)/edit/$','wikicamp.documentation.views.documentation_auth_edit'),
        (r'^documentation/accounts/profile/(?P<user_name>[^/]+)/save/password/$','wikicamp.documentation.views.documentation_auth_pass_save'),
        (r'^documentation/accounts/profile/(?P<user_name>[^/]+)/save/$','wikicamp.documentation.views.documentation_auth_save'),
        (r'^operlist/$','wikicamp.operlist.views.index'),
        (r'^operlist/patient/add/$','wikicamp.operlist.views.operlist_add'),
        (r'^operlist/patient/saveas/$','wikicamp.operlist.views.operlist_saveas'),
        (r'^operlist/show/$','wikicamp.operlist.views.operlist_show'),
        (r'^operlist/show-h/$','wikicamp.operlist.views.operlist_show_h'),
        (r'^operlist/delete/$','wikicamp.operlist.views.operlist_delete'),
        (r'^operlist/ajax/$','wikicamp.operlist.views.operlist_ajax'),
        (r'^operlist/ajax-h/$','wikicamp.operlist.views.operlist_ajax_h'),
        (r'^chaining/', include('wikicamp.smart_selects.urls')),
        

)
